/* 首页内容的样式 */

/* banner */
.banner {
    height: 500px;
    background-color: #f5f5f5;
}

.banner .wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
}

/* 轮播图 */
.banner .pic {
    display: flex;
    /* flex布局, 父级宽度不够, 子级被挤小, 增大父级尺寸 */
    width: 3720px;
}

/* 测导航 */
.subnav {
    position: absolute;
    left: 0;
    top: 0;
    width: 250px;
    height: 500px;
    background-color: rgba(0, 0, 0, 0.42);
}

.subnav li {
    display: flex;
    justify-content: space-between;
    padding-left: 30px;
    padding-right: 12px;
    height: 50px;
    line-height: 50px;
    color: #fff;
    cursor: pointer;
}


/* a所有都是小字, 分类是大字 */
.subnav li a {
    margin-right: 5px;
    font-size: 14px;
    color: #fff;
}

.subnav li .classify {
    margin-right: 14px;
    font-size: 16px;
}

.subnav li .iconfont {
    font-size: 14px;
}

.subnav li:hover {
    background-color: #00be9a;
}


/* 圆点指示器 */
.banner ol {
    position: absolute;
    bottom: 17px;
    right: 16px;
    display: flex;
}

.banner ol li {
    margin-left: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
}

.banner ol i {
    display: block;
    margin: 4px;
    width: 14px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

/* 选中: li半透; i白色 */
.banner ol .current {
    background-color: rgba(255, 255, 255, 0.5);
}

.banner ol .current i {
    background-color: #fff;
}

/* 新鲜好物 goods */
/* 标题 -- 公共样式 */
.tltle {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    margin-bottom: 30px;
    height: 42px;
}

.tltle .left {
    display: flex;
}

.tltle .left h3 {
    margin-right: 35px;
    font-size: 30px;
}

.tltle .left p {
    align-self: flex-end;
    color: #a1a1a1;
}

.tltle .right .more {
    line-height: 42px;
    color: #a1a1a1;
}

.tltle .right .more .iconfont {
    margin-left: 10px;
}

/* 好物内容 bd -- 公共样式 */
.bd ul {
    display: flex;
    justify-content: space-between;
}

.bd li {
    width: 304px;
    height: 304x;
    background-color: #eef9f4;
}

.bd li .pic {
    width: 304px;
    height: 304px;
}

.bd li .txt {
    text-align: center;
}

.bd li h4 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 20px;
}

.goods .bd p {
    font-size: 18px;
    color: #aa2113;
}

.goods .bd p span {
    margin-left: 3px;
    font-size: 22px;
}

/* 人气推荐 recommend */
.recommend .bd li {
    background-color: #fff;
}

.recommend .bd p {
    color: #a1a1a1;
}

/* 热门品牌 brand */
.brand {
    margin-top: 60px;
    height: 468px;
    background-color: #f5f5f5;
}

.brand .wrapper {
    overflow: hidden;
    height: 468px;
}

.brand .tltle {
    position: relative;
    margin-bottom: 40px;
}

.brand .button {
    position: absolute;
    right: 0;
    bottom: -25px;

    /* 让a在一行显示, 宽高生效 */
    display: flex;
}

.brand .button a {
    margin-left: 12px;
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    color: #fff;
}

.brand .button .prev {
    background-color: #ddd;
}

.brand .button .next {
    background-color: #00be9a;
}

.brand .bd li {
    width: 244px;
    height: 306px;
}

/* 生鲜 fresh */
.fresh .tltle {
    margin-top: 60px;
    margin-bottom: 20px;
}

.tltle .right {
    display: flex;
}

.tltle .right ul {
    display: flex;
    margin-top: 10px;
    margin-right: 58px;
}

.tltle .right ul a {
    display: block;
    margin-left: 6px;
    padding: 0 7px;
    height: 20px;
    line-height: 20px;
}

.tltle .right ul .active {
    background-color: #00be9a;
    color: #fff;
}

/* 生鲜内容 content */
.content {
    display: flex;
    justify-content: space-between;
}

.content .left {
    width: 248px;
    height: 610px;
}

.content .right {
    width: 968px;
    height: 610px;
}

.content .right ul {
    display: flex;
    flex-wrap: wrap;
}

.content .right li {
    position: relative;
    padding: 10px 21px 0;
    width: 242px;
    height: 305px;

/* 为了隐藏绿色cover */
    overflow: hidden;
}

/* 产品内容 */
.content .pic {
    width: 200px;
    height: 180px;
}

.content .info {
    margin-top: 14px;
    margin-bottom: 5px;
    height: 60px;
    line-height: 19px;
}

.content .price {
    color: #af2f22;
}

.content .price span {
    margin-left: 5px;
    font-size: 22px;
}

/* 产品底部绿色区域 cover  */
.content li a .cover {
    position: absolute;
    left: 0;
    bottom: -86px;
    padding-top: 15px;
    width: 242px;
    height: 84px;
    background-color: #00be9a;
    text-align: center;
    color: #fff;
    transition: all 0.5s;
}

.content  a .cover p:nth-child(1) {
    font-size: 18px;
}

.content  a .cover p:nth-child(2) {
    margin: 3px auto 6px;
    width: 120px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.11);
}

.content  a .cover p:nth-child(3) {
    font-size: 13px;
}

.content  a .cover p:nth-child(3) .iconfont {
    font-size: 14px;
}

/* 鼠标悬停到li, 显示cover, 改变位置 */
.content .right li:hover a .cover {
    bottom: 0;
}

.content .right li:hover {
    border: 2px solid #00be9a;
}

/* 服饰 clothes */
.clothes .tltle {
    margin-top: 60px;
    margin-bottom: 20px;
}


/* 餐厨 kitchen  */
.clothes .tltle {
    margin-top: 60px;
    margin-bottom: 20px;
}

/* 居家 home  */
.clothes .tltle {
    margin-top: 60px;
    margin-bottom: 20px;
}

/* 最新专题 topic */
.topic {
    margin-bottom: 40px;
}

.topic title {
    margin-top: 100px;
}

.topic-bd ul {
    display: flex;
    justify-content: space-between;
}

.topic-bd li {
    width: 405px;
    height: 355px;
}

.topic-bd .pic {
    position: relative;
    width: 405px;
    height: 288px;
}

.topic-bd .txt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    width: 405px;
    height: 67px;
    font-size: 14px;
    color: #666;
}

.topic-bd .txt .left {
    display: flex;
}

.topic-bd .txt .left p {
    margin-right: 20px;
}

.topic-bd .txt .left p:nth-child(1) i {
    color: #aa2113;
}


/* 定位区域 - 文字 cover */
.topic-bd .cover {
    position: absolute;
    left: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    width: 405px;
    height: 90px;
    /* 颜色渐变 */
    /* 好处: 是不管图片是什么颜色的, 下方变的比较暗, 文字就会被用户看的更清楚 */
    background-image: linear-gradient(180deg, rgba(137,137,137,0.00) 0%, rgba(0,0,0,0.90) 100%);
}

.topic-bd .cover .left {
    color: #fff;
}

.topic-bd .cover .left h4 {
    margin-bottom: 6px;
    font-size: 20px;
}

.topic-bd .cover .right {
    padding: 0 7px;
    height: 25px;
    background-color: #fff;
    color: #aa2113;
    font-size: 15px;
}

.topic-bd .cover .right span {
    font-size: 18px;
}

